function formDate(){
  let date = new Date();
  var y = date.getFullYear();
  var m = date.getMonth() + 1;
  m = m < 10 ? ('0' + m) : m;
  var d = date.getDate();
   d = d < 10 ? ('0' + d) : d;
  var h = date.getHours();
  var minute = date.getMinutes();
  var second = date.getSeconds();
  h = h < 10 ? ('0' + h) : h;
  minute = minute < 10 ? ('0' + minute) : minute;
  second = second < 10 ? ('0' + second) : second;
  return y + '-' + m + '-' + d+' '+h+':'+minute +':'+second;
};
function transTime(time){
  let date = new Date(time);
  var y = date.getFullYear();
  var m = date.getMonth() + 1;
  m = m < 10 ? ('0' + m) : m;
  var d = date.getDate();
   d = d < 10 ? ('0' + d) : d;
  var h = date.getHours();
  var minute = date.getMinutes();
  var second = date.getSeconds();
  h = h < 10 ? ('0' + h) : h;
  minute = minute < 10 ? ('0' + minute) : minute;
  second = second < 10 ? ('0' + second) : second;
  return y + '-' + m + '-' + d+' '+h+':'+minute +':'+second;
};

function getMenu1(){
  return {
    label:'流水明细',
    list:[
      {label:'流水明细',src:'my-cont-on1.png',link:'/pages/goldCoins/goldCoins',num:1},
      {label:'红包明细',src:'my-cont-on2.png',link:'/pages/myWallet/myWallet',num:2},
      {label:'金币兑现现金',src:'my-cont-on3.png',link:'/pages/cashExchange/cashExchange',num:3},
      {label:'余额到支付宝',src:'my-cont-on4.png',src2:'miao-tip.png',link:'/pages/remainder/remainder',num:4},
    ]
  }
};
function getMenu2(){
  return {
    label:'更多功能',
    list:[
      {label:'邀好友领红包',src:'my-cont-on5.png',link:'/pages/visitGift/visitGift',num:5},
      // {label:'排行榜',src:'my-cont-on6.png',link:'/pages/rankingList/rankingList',num:6},
      // {label:'收藏',src:'my-cont-on7.png',link:'/pages/collection/collection',num:7},
      {label:'规则说明',src:'my-cont-on8.png',link:'/pages/ruleDes/ruleDes',num:8},
    ]
  }
};
function getMenu3(){
  return {
    label:'联系我们,有问必答',
    list:[
      // {label:'商务合作',src:'my-cont-on9.png',link:'/pages/visitGift/visitGift',num:9},
      // {label:'技术在线',src:'my-cont-on10.png',link:'/pages/rankingList/rankingList',num:10},
      // {label:'意见反馈',src:'my-cont-on11.png',link:'/pages/collection/collection',num:11},
    ]
  }
};
module.exports = {
  formDate,
  transTime,
  getMenu1,
  getMenu2,
}